package org.example.Utils;

import lombok.Data;
import org.example.TankGan.pojo.MyHeroTank.MyHero;

/**
 * @author cc
 * @date 2021/4/20 15:53
 * @Description
 */
@Data
public class Myheroinit {
    private static int x_m=200; //自己x坐标
    private static int y_m=200; //自己y坐标
    private static int drection=0;

    private static MyHero myHero=null;
    public static MyHero initMe(){
        return myHero = new MyHero(x_m,y_m,drection,20,0);

    }
    public static MyHero initMe(int x,int y){
        return myHero = new MyHero(x,y,drection,20,0);
    }
    public static MyHero initMe(int x,int y,int speed){
        return myHero = new MyHero(x,y,drection,speed,0);
    }
    public static MyHero initMe(int x,int y,int speed,int drection,int BulletSpeed,int BulletNumbs){
        return myHero = new MyHero(x,y,drection,speed,0,BulletNumbs,BulletSpeed);
    }
    public static MyHero initMe(int x,int y,int speed,int drection,int BulletNumbs){
        return myHero = new MyHero(x,y,drection,speed,0,BulletNumbs);
    }
    public static MyHero initMe(int BulletNumbs){
        myHero = new MyHero(x_m,y_m,drection,20,0,BulletNumbs);
        return myHero ;
    }
}
